#ifndef COMPLEX_H
#define COMPLEX_H
#include <fstream>
using namespace std;
class Complex
{
	public:
		Complex();
		Complex(double d,double i);
		virtual ~Complex();
		Complex& operator=(const Complex &c);
		Complex operator+(const Complex &c) const;
		Complex operator-(const Complex &c) const;
		Complex operator+=(const Complex &c);
		Complex operator-=(const Complex &c);
		bool operator==(const Complex&c) const;
		bool operator!=(const Complex&c) const;
		double getreal();
		void setreal(double d);
		double getimage();
		void setimage(double i);
		friend ostream& operator<<(ostream& os,Complex& c);
		friend istream& operator>>(istream& is,Complex& c);
	protected:
		double _real;
		double _image;
};

#endif
